package com.wngbms.netty._01simple.server;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MyInitializerImpl extends ChannelInitializer<SocketChannel> {

    public MyInitializerImpl() {
        log.info("construct MyInitializerImpl");
    }

    @Override
    protected void initChannel(SocketChannel ch) throws Exception {
        log.info("init channel:{}", ch);
        ch.pipeline().addLast(new MyInboundHandlerImpl2());
    }
}
